//
//  HudMgr.h
//  storeapp
//
//  Created by huangyi on 13-3-12.
//  Copyright (c) 2013年 ios. All rights reserved.
//

#import <Foundation/Foundation.h>

@class HudObj;

@interface HudMgr : NSObject

@property(nonatomic,weak)UIWindow* rootStage;
@property(nonatomic)dispatch_queue_t queue;

+(HudMgr*)shared;
-(void)showHud:(HudObj*)hud;
-(void)hideHud;
-(void)unblockHud;//hud block user interactions, unlock

@end

extern void SendToast(NSString *message);
extern void SendAlert(NSString *message);
extern void SendTask(NSString *message,dispatch_block_t code);
extern void SendTextInput(NSString *message,void (^code)(id payload));
